package com.why.simpleboot.core.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.PrintStream;

/**
 * @program: why-simpleboot
 * @description:打印Banner的类
 * @author: @why  static' method declared 'final'
 * @create: 2021-05-13 09:37
 **/

public final class SimpleBootBanner {
    public static final String BANNER_NAME =
            " ____  _                 _      ____              _   \n" +
                    "/ ___|(_)_ __ ___  _ __ | | ___| __ )  ___   ___ | |_ \n" +
                    "\\___ \\| | '_ ` _ \\| '_ \\| |/ _ \\  _ \\ / _ \\ / _ \\| __|\n" +
                    " ___) | | | | | | | |_) | |  __/ |_) | (_) | (_) | |_ \n" +
                    "|____/|_|_| |_| |_| .__/|_|\\___|____/ \\___/ \\___/ \\__|\n" +
                    "                  |_|                                 \n";
    private static final Logger log = LoggerFactory.getLogger(SimpleBootBanner.class);
    public static void printBanner(PrintStream printStream) {
        if (log.isDebugEnabled()) {
            log.info("start print banner");
        }

        printStream.println(BANNER_NAME);

    }

}
